package com.school.information.dto;

import com.school.information.entity.SysRoleEntity;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class RoleDTO {
    /**
     * 角色信息
     */
    @Valid
    private SysRoleEntity sysRole;

    /**
     * 权限菜单集合
     */
    @NotNull(message = "菜单权限信息不能为空")
    private List<Long> menus;
}
